//
//  DiscountMoreDataModel.m
//  AroundTheWorld
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "DiscountMoreDataModel.h"
#import "DiscountMoreHot_areaModel.h"
#import "DiscountMoreHot_goodsModel.h"
#import "DiscountMoreDidcount_topicModel.h"


@implementation DiscountMoreDataModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setHot_area:(NSMutableArray *)hot_area
{
    _hot_area = hot_area;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _hot_area) {
        DiscountMoreHot_areaModel *model = [[DiscountMoreHot_areaModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    _hot_area = [NSMutableArray arrayWithArray:array];
}

- (void)setDiscount_topic:(NSMutableArray *)discount_topic
{
    _discount_topic = discount_topic;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _discount_topic) {
        DiscountMoreDidcount_topicModel *model = [[DiscountMoreDidcount_topicModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    _discount_topic = [NSMutableArray arrayWithArray:array];
}

- (void)setHot_goods:(NSMutableArray *)hot_goods
{
    _hot_goods = hot_goods;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _hot_goods) {
        DiscountMoreHot_goodsModel *model = [[DiscountMoreHot_goodsModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    _hot_goods = [NSMutableArray arrayWithArray:array];
}


@end
